import java.util.Scanner;


public class Bitlerlemeyveler {
    private byte a;
    private byte maske = 1;
    public static Scanner klavye = new Scanner(System.in);
    
    public void aAyarla(byte i)
    {a = i;}
    
    public void Ayarla(int b )
    {
        a = (byte)(a | (byte)(maske << (b - 1)));
    }
    public String BitGoster()
    {
        String sonuc = "";

        for(int i = 0 ; i < 8 ; i++)
        {
            if((a & ((byte)(maske << i))) == (byte)(maske << i))
                sonuc = "1" + sonuc;
            else
                sonuc = "0" + sonuc;
        }
        return sonuc;
    }
    
    public void Ekle()
    {  int sec1;
        System.out.println("(1)Elma \n(2)Armut \n(3)Uzum \n(4)Ayva \n(5)Muz" +
        		"\n(6)Ananas \n(7)Cilek \n(8)Kiraz");
        sec1 = klavye.nextInt();
        this.Ayarla(sec1);
    }
    
    public void Cikar()
    {  int sec1;
        System.out.println("(1)Elma \n(2)Armut \n(3)Uzum \n(4)Ayva \n(5)Muz" +
        		"\n(6)Ananas \n(7)Cilek \n(8)Kiraz");
        sec1 = klavye.nextInt();
        a = (byte)(a & (byte)(~(maske << (sec1 - 1))));
    }
    
    public void Listele()
    {  
    	for(int i = 0; i < this.BitGoster().length(); i++)
    		if(this.BitGoster().charAt(i) == '1')
    			switch (8 - i)
    			{
				case 1:
					System.out.println("Elma");
					break;

				case 2:
					System.out.println("Armut");
					break;

				case 3:
					System.out.println("Uzum");
					break;

				case 4:
					System.out.println("Ayva");
					break;

				case 5:
					System.out.println("Muz");
					break;

				case 6:
					System.out.println("Ananas");
					break;

				case 7:
					System.out.println("Cilek");
					break;

				case 8:
					System.out.println("Kiraz");
					break;
				}
    }
    
    
 
    public static void main(String[] args) 
    {
        Bitlerlemeyveler nesne = new Bitlerlemeyveler();
        
        int sec = 5;
        nesne.aAyarla((byte)0);
        while(sec != 4)
        {
            System.out.println("(1)EKLE \n(2)CIKAR \n(3)LISTELE \n(4)CIK ");
            sec = klavye.nextInt();
            switch(sec)
            {
                case  1 : 
                    nesne.Ekle();
                    break;
                case 2 :
                    nesne.Cikar();
                    break ;
                case 3:
                	nesne.Listele();
                    break;
                    
                    
                default:
                   break ;
                    
            }
        }
    }
}
